package com.enation.app.javashop.base.api;

import io.swagger.annotations.Api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;

/**
 * @author fk
 * @version v2.0
 * @Description: ${todo}
 * @date 2018/11/514:50
 * @since v7.0.0
 */
@RestController
@RequestMapping("/test")
@Api(description = "test")
@Scope("request")
public class TestRedisController {


    @Autowired
    private  MyTest myTest;

    private int i =0 ;

    @GetMapping("/test2")
    public String test2() throws InterruptedException {
        Thread.sleep(500);
        System.out.println(i);
        i++;

        return "ok";
    }








}
